package top.topsmart.api.bycenter.mapper;

import top.topsmart.api.bycenter.model.Dynamic;
import top.topsmart.api.bycenter.entity.pojo.MineEntity;
import top.topsmart.api.bycenter.entity.pojo.PageEntity;

import java.util.List;

public interface DynamicMapper {
    int deleteByPrimaryKey(String id);

    int insert(Dynamic record);

    int insertSelective(Dynamic record);

    Dynamic selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Dynamic record);

    int updateByPrimaryKey(Dynamic record);

    //自定义业务

    List<Dynamic> backByType(PageEntity page);

    List<Dynamic> getMine(MineEntity mineEntity);
}